<!DOCTYPE html>
<html lang="en">
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        
    </head>
    <body>
        <p>你可以编辑我啦</p>
        <iframe src="chp14-2blank.html" style="height:500px;width:400px;background: #cccccc" name="richdit" frameborder="0"></iframe>
    </body>
    <script type="text/javascript">
        window.addEventListener('load',function (event){
            window.frames['richdit'].document.designMode = "on";
            
           
        });
    </script>
</html>